<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
/**
后端程序定义正式路由写在此下
*/

Route::get('/', 'IndexController@welcomeAction'); //首页视图页

Route::get('/shopindex', 'IndexController@shopindexAction'); //e井商城首页
Route::get('/searchAction', 'IndexController@searchAction'); //e井商城全文搜索

Route::get('news/{id}', 'NewsController@infoAction'); //新闻详情页
//用户登录注册
Route::resource('news', 'NewsController'); //新闻详情页

Route::group(['prefix' => 'helper'], function () {
    Route::get('list/{id}', 'HelperController@index'); // 帮助中心，系统文章
    Route::get('detail/{id}', 'HelperController@show'); // 帮助中心，系统文章
});

//用户登录注册
    Route::group(['prefix' => 'user', 'namespace' => 'User'], function () {
        Route::get('/login', 'UserController@loginAction'); //登录视图页
        Route::post('/loginmember', 'UserController@loginmemberAction'); //登录验证
        Route::post('/messageslogin', 'UserController@messagesloginAction'); //短信直接登录验证
        Route::get('/sendmessages', 'UserController@sendmessagesAction'); //发送短信
        Route::get('/forget', 'UserController@forgetAction'); //找回密码视图页
        Route::any('/forgettwo', 'UserController@forgettwoAction'); //找回密码--录入新密码视图页
        Route::post('/forgetupdate', 'UserController@forgetupdateAction'); //找回密码--修改密码
        Route::get('/logout', 'UserController@logoutAction'); //退出登录

        /**老版注册**/
        //Route::get('/registermessages', 'UserController@registermessagesAction'); //注册发送短信验证以及发送
        //Route::get('/register', 'UserController@registerAction'); //注册视图页
        //Route::post('/companyregister', 'UserController@companyRegisterAction'); //企业注册提交
        //Route::post('/personalregister', 'UserController@personalRegisterAction'); //个人注册提交

        /**新版注册**/
        Route::get('/register', 'RegisterNewController@registerAction'); //注册视图页
        Route::get('/registermessages', 'RegisterNewController@registermessagesAction'); //注册发送短信验证以及发送
        Route::post('/personalregister', 'RegisterNewController@personalRegisterAction'); //个人注册提交
        Route::get('/personalregistertwo', 'RegisterNewController@personalRegisterTwoAction'); //个人注册第二步
        Route::any('/companyregistertwo', 'RegisterNewController@companyRegisterTwoAction'); //企业注册第二步
        Route::post('/companyregister', 'RegisterNewController@companyRegisterAction'); //企业注册提交
        Route::get('/companyregisterthree', 'RegisterNewController@companyRegisterThreeAction'); //企业注册第三步

    });


Route::group(['prefix' => 'member/buyer','namespace' => 'Member\Buyer','middleware' =>  []],function() {
    //购物车管理
    Route::get('carts/get_carts', 'CartsController@get_carts');//获得cookie购物车
    Route::resource('carts', 'CartsController');
    Route::get('carts/add_carts', 'CartsController@add_carts');

});

Route::group(['middleware' =>  ['webAuthenticate']],function() {
    //会员中心
    Route::group(['prefix' => 'member', 'namespace' => 'Member'], function () {

        //我的E井
        Route::group(['prefix' => 'user', 'namespace' => 'User'], function () {

            //会员信息
            Route::get('info', 'UserController@infoAction');  //基本信息视图
            Route::get('updateinfo', 'UserController@updateInfoAction');  //修改基本信息
            Route::get('safe', 'UserController@safeAction');  //账户安全视图
            Route::get('pwd_revise', 'UserController@pwdReviseAction');  //登陆密码修改视图
            Route::any('pwd_revisetw', 'UserController@pwdReviseTwAction');  //登陆密码修改视图第二步
            Route::any('pwd_reviseth', 'UserController@pwdReviseThAction');  //登陆密码修改视图第三步
            Route::get('phone_revise', 'UserController@phoneReviseAction');  //手机修改视图
            Route::any('phone_revisetw', 'UserController@phoneReviseTwAction');  //手机修改视图第二步
            Route::any('phone_reviseth', 'UserController@phoneReviseThAction');  //手机修改视图第三步
            Route::get('email_revise', 'UserController@emailReviseAction');  //邮箱修改视图
            Route::any('email_revisetw', 'UserController@emailReviseTwAction');  //邮箱修改视图第二步
            Route::any('email_reviseth', 'UserController@emailReviseThAction');  //邮箱修改视图第三步
            Route::get('pay_revise', 'UserController@payReviseAction');  //支付密码修改视图
            Route::any('pay_revisetw', 'UserController@payReviseTwAction');  //支付密码修改视图第二步
            Route::any('pay_reviseth', 'UserController@payReviseThAction');  //支付密码修改视图第三步

            //卖家中心
            //未开通商铺
            Route::get('shop', 'UserController@shop');//店铺首页
            Route::post('shop', 'UserController@shop_auth');//店铺首页

            //公司完善资料管理
            Route::resource('company', 'CompanyController');//企业认证
            Route::post('company/saveinfo', 'CompanyController@saveInfoAction');//企业认证提交资料
            Route::post('company/prove_save_step', 'CompanyController@proveSaveStepAction');//企业认证第二步客户打款验证
            Route::resource('companymaterial', 'CompanyMaterialController');
            Route::post('companymaterial/prove_save', 'CompanyMaterialController@saveInformationAction');//提交资料


        });
        Route::group(['prefix' => 'seller', 'namespace' => 'User'], function () {
            Route::get('seller_admittance', 'UserController@admittance');
        });
        //卖家中心
        Route::group(['middleware' =>  ['shopAuthenticate'],'prefix' => 'seller', 'namespace' => 'Seller'], function () {
            //Route::get('/', 'Controller@indexAction');
            //服务订单管理 // CuiLiwu
            Route::resource('service/order', 'ServiceOrdersController');
            //订单管理 // CuiLiwu
            Route::resource('orders', 'OrdersController');
            Route::resource('pictures', 'ShopPictureController');
            Route::post('pictures/deletePicture', 'ShopPictureController@deletePicture');

            //合同管理 // CuiLiwu
            Route::resource('contracts', 'ContractsController');
            Route::post('contracts/set_default/{id}', 'ContractsController@updateSetDefault');

            Route::get('contract_auth', 'ContractsController@contract_auth');


            Route::group(['prefix' => 'order_contract'], function () {
                Route::get('/', [ 'uses' =>'OrderContractController@index', 'as' => 'web.seller.order_contract.index']);
                Route::get('/init', 'OrderContractController@init');
                Route::post('/contract_auth', 'OrderContractController@contract_auth_post');
                Route::get('/contract_auth', 'OrderContractController@contract_auth');
                Route::get('/contract_msg', 'OrderContractController@contract_msg');
                Route::get('/contract_write', 'OrderContractController@contract_write');
                Route::post('/contract_post', 'OrderContractController@contract_post');
                Route::post('/sendsms', 'OrderContractController@sendsms');
                Route::get('/contract_cost',[ 'uses' =>'OrderContractController@contract_cost', 'as' => 'web.seller.order_contract.contract_cost']);

            });



            // 商铺装修 start  // CuiLiwu
            // banner 设置
            Route::resource('design', 'ShopBannersController');
            // 商铺装修 end

            // 我的收款 // CuiLiwu
            Route::resource('receives', 'ReceiveController');

            //商品管理
            Route::resource('product', 'ProductController');
            Route::post('product/batchdel', 'ProductController@batchdel');
            Route::post('product/batchsale', 'ProductController@batchsale');
            Route::post('product/attrval', 'ProductController@attrval');
            Route::delete('product/attrdel/{val_id}', 'ProductController@attrdel');

            //e井宝
            Route::resource('account', 'ReceivingAccountController'); //收款账户
            Route::get('ejbao', 'ReceivingAccountController@ejbao'); //我的e井宝
            Route::post('account/sendsms', 'ReceivingAccountController@sendsms');
            Route::get('checkpaypwd', 'ReceivingAccountController@checkpaypwd');
            Route::get('getbankcode', 'ReceivingAccountController@getbankcode');
            Route::post('account/update_default', 'ReceivingAccountController@updateDefault');
            Route::get('checkcard', 'ReceivingAccountController@checkcard');

            //商铺配置
            Route::resource('shop_configure', 'ShopController');

            // custom s CuiLiwu
            Route::group(['prefix' => 'order_list'], function () {
                Route::get('/', 'OrdersController@index');
                Route::get('/{order_code}/show', 'OrdersController@show');
            });

            Route::resource('orders', 'OrdersController');
            Route::resource('orders.order_products', 'OrderProductsController', ['only' => ['edit', 'update']]);    //订单产品
            Route::resource('orders.order_express', 'OrderExpressController', ['only' => ['show', 'store']]);    //订单物流
            Route::resource('orders.user_comment', 'UserCommentController', ['only' => ['show', 'store']]);     //卖家评论买家

            //退货款管理
            Route::group(['prefix' => 'change'], function () {
                // 退货款列表
                Route::get('/', 'ChangeController@indexAction');
                // 退货款单详情
                Route::get('/{change_id}', 'ChangeController@showAction');
                // 退货款状态更新
                Route::post('/{change_id}', 'ChangeController@storeAction');
                // 退货款单删除
                Route::delete('/{change_id}', 'ChangeController@deleteAction');
            });
            Route::resource('orders.order_products', 'OrderProductsController');
            // custom e CuiLiwu
            // 测试 Test

            //品牌申请
            Route::resource('shop_brand', 'BrandAuditController');
            Route::get('shop_brand_add', 'BrandAuditController@create');

            //店铺自定义
            Route::delete('shop_design_custom/{id}', 'ShopCategoriesController@destroy');
            Route::resource('shop_design_custom', 'ShopCategoriesController');

            //店铺装修--模板选择
           Route::resource('shop_design_templet', 'ShopTempleteController');



            //员工管理
            Route::post('member_add', 'ShopEmployeeController@create_phone');

            Route::resource('member', 'ShopEmployeeController');
            Route::post('member/create2', 'ShopEmployeeController@create2');
            Route::post('member/create3', 'ShopEmployeeController@create3');
            Route::post('member/checkphone', 'ShopEmployeeController@checkphone');
            Route::post('member/verifyCode', 'ShopEmployeeController@verifyCode');

            //新增员工
            // 邀请手机号码
            Route::get('/member_add', function() {
                return view('web.user.seller.member_add');
            });
            // 手机验证码
            Route::get('/member_add2', function() {
                return view('web.user.seller.member_add2');
            });
            // 邀请成功
            Route::get('/member_add3', function() {
                return view('web.user.seller.member_add3');
            });
            //编辑员工
//            Route::get('/seller/member_edit', function() {
//                return view('web.user.seller.member_edit');
//            });

            //卖家中心首页
            Route::resource('index', 'IndexController');//卖家中心首页

            //配单管理
            Route::get('items/items_stock', 'ItemsInformationController@items_stock');
            Route::get('items/item_shop', 'ItemsInformationController@item_shop');
            Route::get('items/item_clone/{id}', 'ItemsInformationController@item_clone');

            Route::resource('items', 'ItemsInformationController');//卖家配单列表

        });


        //买家中心
        Route::group(['prefix' => 'buyer', 'namespace' => 'Buyer'], function () {

            //服务订单管理 // CuiLiwu
            Route::get('service/order/close/{id}', 'ServiceOrdersController@close');//取消服务订单
            Route::resource('service/order', 'ServiceOrdersController');

            Route::resource('buyer_index', 'BuyerIndexController');
            //退货管理
            Route::get('/change/', 'ChangeController@indexAction');
            Route::get('/change/{order_id}', 'ChangeController@createAction');
            Route::post('/change/', 'ChangeController@storeAction');

            //我的收藏
            Route::resource('collection', 'CollectionController');

            Route::post('collection/multiDelete', 'CollectionController@multiDelete');

            //订单管理
            Route::get('/change/{order_id}', 'ChangeController@createAction');
            Route::resource('orders', 'OrdersController');  //订单
            Route::post('orders/checkBuyProduct/{sku_id}', 'OrdersController@checkBuyProduct');  // 检测是否可以立即购买
            Route::resource('orders.order_express', 'OrderExpressBuyerController', ['only' => ['show', 'store']]);    //订单物流

            Route::group(['prefix' => 'eqbao'], function () {
                Route::get('/', 'EQBaoController@index');
                Route::get('/init', 'EQBaoController@init');
//                 Route::get('/contract_auth', 'EQBaoController@contract_auth');
//                 Route::get('/contract_msg', 'EQBaoController@contract_msg');
//                 Route::get('/contract_write', 'EQBaoController@contract_write');
//                 Route::post('/contract_post', 'EQBaoController@contract_post');
//                 Route::get('/contract_cost',[ 'uses' =>'EQBaoController@contract_cost', 'as' => 'web.eqbao.contract_cost']);
//                 Route::post('/addPerson', 'EQBaoController@addPerson');
//                 Route::post('/addOrganize', 'EQBaoController@addOrganize');
//                 Route::post('/addTemplateSeal', 'EQBaoController@addTemplateSeal');
//                 Route::post('/addFileSeal', 'EQBaoController@addFileSeal');
//                 Route::post('/userSignPDF', 'EQBaoController@userSignPDF');
//                 Route::post('/selfSignPDF', 'EQBaoController@selfSignPDF');
//                 Route::post('/saveSignedFile', 'EQBaoController@saveSignedFile');
            });
            Route::get('/orders/comments/{order_id}/user_comment/{user_comment}', 'CommentsController@show');
            Route::resource('orders.comments', 'CommentsController', ['only' => ['create', 'store']]);  //评论

            //发票管理
            Route::resource('invoices', 'InvoicesController');
            Route::get('checkInvoice', 'InvoicesController@checkInvoices');
            Route::post('invoices/set_default/{id}', 'InvoicesController@updateSetDefault');

            Route::resource('pay', 'PayController');
            Route::get('submit_pay', 'PayController@submit_payAction');//支付选择跳转
            Route::get('pay_error', 'PayController@payError');
            // 我的举报
            Route::resource('report', 'ReportController');
            //新增我的举报
            Route::get('report_add' , 'ReportController@create');
//            Route::get('/user/report', function () {
//                return view('web.user.buyer.report');
//            });

            //配单管理
            Route::post('items/order/store', 'ItemsInformationController@order_store');
            Route::get('items/order/{code}', 'ItemsInformationController@order_create');
            Route::resource('items', 'ItemsInformationController');//买家配单列表
            Route::get('items_pay/{code}', 'ItemsInformationController@payment');

            Route::get('attribute/add_arris' , 'OrderAttributeController@add_arris');
            Route::resource('attribute', 'OrderAttributeController');//资质订单

            Route::group(['prefix' => 'order_contract'], function () {
                Route::get('/', [ 'uses' =>'OrderContractController@index', 'as' => 'web.buyer.order_contract.index']);
                Route::get('/init', 'OrderContractController@init');
                Route::post('/contract_auth', 'OrderContractController@contract_auth_post');
                Route::get('/contract_auth', 'OrderContractController@contract_auth');
                Route::get('/contract_write', 'OrderContractController@contract_write');
                Route::post('/contract_post', 'OrderContractController@contract_post');
                Route::post('/sendsms', 'OrderContractController@sendsms');
                Route::get('/contract_cost',[ 'uses' =>'OrderContractController@contract_cost', 'as' => 'web.buyer.order_contract.contract_cost']);

            });

        });
        Route::resource('cate', 'CategoryController');

        //收货地址管理
        Route::post('address/order_store', 'AddressController@orderStore');
        Route::resource('address', 'AddressController');
        Route::put('address/{id}/set_default', 'AddressController@updateSetDefault');
        
        //Route::resource('banks', 'BankListController');
    });



    Route::get('404',['as' => 'web.error.404','uses' => 'ErrorController@error404Action']);//404
    Route::get('500',['as' => 'web.error.500','uses' => 'ErrorController@error500Action']);//500

});


    Route::group(['prefix' => 'product', 'namespace' => 'Product'], function () {
        Route::get('/info/{product_id}/{sku_id?}', 'ProductController@show');
        Route::get('/comments/{product_id}', 'ProductController@getComments');
        Route::get('/product_list/{cate_id}', 'ProductController@list');
        Route::get('/search', 'ProductController@search');

        // 添加收藏
        Route::get('/collection', 'ProductController@addCollection');
    });

//添加购物车 存入cookie
//Route::group(['prefix' => 'carts', 'namespace' => 'Carts'], function () {
//    Route::get('/', 'CartsController@index');//存入cookie
//    Route::get('/get_carts', 'CartsController@get_carts');//获得cookie购物车
//    Route::get('/del_carts', 'CartsController@delete');//删除cookie购物车
//    Route::get('/update_carts', 'CartsController@update');//更新cookie购物车
//    Route::get('/delete_cart', 'CartsController@delete_cart');//批量删除cookie购物车
//});

Route::post('/add_user','UserController@add_user');

//店铺首页
Route::group(['prefix' => 'shop', 'namespace' => 'Shop'], function () {
    Route::get('index', 'ShopController@index');//店铺首页 没有id跳转首页
    Route::get('index/{sp_id}', 'ShopController@show');//店铺首页
    Route::get('archives/{id}', 'ShopController@archives');//店铺公司档案
    Route::get('products/{sp_id}', 'ShopController@products');//店铺产品列表
    Route::get('attribute/{sp_id}', 'ShopController@attribute');//店铺资质服务列表

});

// 找资质首页
Route::group(['prefix' => 'Qualified', 'namespace' => 'Qualified'], function () {
    //Route::get('index', 'QualifiedController@index');// 找资质首页 没有id跳转首页
    Route::get('index', 'QualifiedController@show');// 找资质首页 没有id跳转首页
});
// 找项目
Route::group(['prefix' => 'find/message', ], function () {
    Route::get('/', 'ProjectController@index');// 找项目列表页 
    Route::get('/detail/{id}', 'ProjectController@show');// 找项目详情
});

//供应链金融 产业 一带一路 留言
Route::group(['prefix' => 'guestbook'], function () {
    Route::post('/', 'GuestbookController@store');

});



/***
分割线-----------------------------下面是前端定义页面测试路由

*/

/*Route::get('/', function () {
    return view('web.welcome');
});*/
// 商城首页
/*Route::get('/shopindex', function () {
    return view('web.shopindex');
});*/
Route::get('/index', function () {
    return view('Admin.index');
});
Route::get('/foradmin/demo/demo', function () {
    return view('Admin.demo.demo');
});
Route::get('/foradmin/demo/details', function () {
    return view('Admin.demo.details');
});
Route::get('/foradmin/demo/list', function () {
    return view('Admin.demo.list');
});
//注册用户
Route::get('/foradmin/User/user', function () {
    return view('Admin.User.user');
});
//认证管理
Route::get('/foradmin/User/authentication', function () {
    return view('Admin.User.authentication');
});
//基本信息
Route::get('/foradmin/User/personal', function () {
    return view('Admin.User.personal');
});
//商品管理
Route::get('/foradmin/goods/goods', function () {
    return view('Admin.goods.goods');
});
//类目管理
Route::get('/foradmin/goods/kinds', function () {
    return view('Admin.goods.kinds');
});
//品牌管理
Route::get('/foradmin/goods/brand', function () {
    return view('Admin.goods.brand');
});
//属性管理
Route::get('/foradmin/goods/attribute', function () {
    return view('Admin.goods.attribute');
});
//属性值管理
Route::get('/foradmin/goods/attribute_value', function () {
    return view('Admin.goods.attribute_value');
});
Route::get('/login', function () {
    return view('login');
});
//商铺管理
Route::get('/foradmin/store/manage', function () {
    return view('Admin.store.manage');
});
//商铺等级
Route::get('/foradmin/store/grade', function () {
    return view('Admin.store.grade');
});
//商铺标识
Route::get('/foradmin/store/label', function () {
    return view('Admin.store.label');
});
//商品订单
Route::get('/foradmin/order/list', function () {
    return view('Admin.order.order_list');
});
//商品详情
Route::get('/foradmin/order/details', function () {
    return view('Admin.order.order_details');
});
//退货/款管理
Route::get('/foradmin/order/rejected', function () {
    return view('Admin.order.orderRejected_list');
});
//咨询管理
Route::get('/foradmin/order/consult', function () {
    return view('Admin.order.consult_list');
});
//结算管理
Route::get('/foradmin/order/balance', function () {
    return view('Admin.order.balance_list');
});
//评价管理
Route::get('/foradmin/order/evaluate', function () {
    return view('Admin.order.evaluate_list');
});
//举报管理
Route::get('/foradmin/report/list', function () {
    return view('Admin.report.list');
});
//举报类型
Route::get('/foradmin/report/type', function () {
    return view('Admin.report.type');
});
//404
Route::get('/foradmin/404', function () {
    return view('Admin.404');
});
//500
Route::get('/foradmin/500', function () {
    return view('Admin.500');
});
Route::get('/foradmin/list1', function () {
    return view('Admin.demo.list1');
});
Route::get('/foradmin/list1/eidt1', function () {
    return view('Admin.demo.edit1');
});

//服务管理
Route::get('/foradmin/service/test', function () {
    return view('Admin.order.service_list');
});
//资质管理
Route::get('/foradmin/aptitude', function () {
    return view('Admin.service.aptitude_list');
});
//资质添加
Route::get('/foradmin/aptitude/add', function () {
    return view('Admin.service.aptitude_add');
});
//资质编辑
Route::get('/foradmin/aptitude/eidt/1', function () {
    return view('Admin.service.aptitude_eidt');
});
//商家资质
Route::get('/foradmin/aptitude_seller', function () {
    return view('Admin.service.aptitude_seller_list');
});

/*//找回密码1
Route::get('/user/forget', function () {
    return view('web.login.forget');
});
//找回密码2
Route::get('/user/forget2', function () {
    return view('web.login.forget2');
});*/
//登录
/*Route::get('/user/login', function () {
    return view('web.login.login');
});*/
//注册
/*Route::get('/user/register_new', function () {
    return view('web.login.register_new');
});*/
//企业注册第二步
Route::get('/user/register_com_two', function () {
    return view('web.login.register_com_two');
});
//企业注册第三步
Route::get('/user/register_com_three', function () {
    return view('web.login.register_com_three');
});
//个人注册第二步
Route::get('/user/register_per_two', function () {
    return view('web.login.register_per_two');
});
//商品详情
Route::get('/product/info_bak', function () {
    return view('web.product.productdt');
});
//买家中心
// 首页
Route::get('/buyer/buyer_index', function () {
    return view('web.user.buyer.buyer_index');
});
//我的订单
/*Route::get('/user/buyer', function () {
    return view('web.user.buyer.order_list');
});*/
//订单详情
/*Route::get('/user/track', function () {
    return view('web.user.buyer.order_track');
});*/
//订单评论
Route::get('/user/comment', function () {
    return view('web.user.buyer.comment');
});
//退换货
Route::get('/user/repair', function () {
    return view('web.user.buyer.repair');
});

// 我的举报
Route::get('/user/report', function () {
    return view('web.user.buyer.report');
});
//新增我的举报
Route::get('/user/report_add', function () {
    return view('web.user.buyer.report_add');
});
// 我的收藏
Route::get('/user/attention', function () {
    return view('web.user.buyer.attention');
});
// 店铺收藏
// Route::get('/user/shop', function () {
//     return view('web.user.buyer.shop');
// });
// 退货/款订单
Route::get('/user/return_bill', function () {
    return view('web.user.buyer.return_bill');
});
//浏览记录
Route::get('/user/record', function () {
    return view('web.user.buyer.record');
});
//我的配单
Route::get('/user/match_order', function () {
    return view('web.user.buyer.match_order');
});
//我的定制
Route::get('/user/formulate', function () {
    return view('web.user.buyer.formulate');
});
//我的管家
Route::get('/user/housekeeper', function () {
    return view('web.user.buyer.housekeeper');
});
//我的积分
Route::get('/user/points', function () {
    return view('web.user.buyer.points');
});
//我的优惠券
Route::get('/user/coupon', function () {
    return view('web.user.buyer.coupon');
});
// 我的余额
//银行卡提现
Route::get('/user/cash_fir', function () {
    return view('web.user.buyer.cash_fir');
});
//支付宝提现
Route::get('/user/cash_sec', function () {
    return view('web.user.buyer.cash_sec');
});
//进货单
Route::get('/order/cart', function () {
    return view('web.order.cart');
});
//订单确认
Route::get('/order/submit_cart', function () {
    return view('web.order.submit_cart');
});
//付款确认
Route::get('/order/submit_payment', function () {
    return view('web.order.submit_payment');
});

//园区
Route::get('/garden', function () {
    return view('web.garden.garden');
});
//一带一路
Route::get('/road', function () {
    return view('web.road.road');
});
//专题
Route::get('/special', function () {
    return view('web.special.special');
});
//店铺产品列表
Route::get('/shop/products', function () {
    return view('web.shop.glists');
});

//店铺服务
Route::get('/shop/service/1', function () {
    return view('web.shop.service');
});
//服务--订单页
Route::get('/member/buyer/carts_service', function () {
    return view('web.order.cart_service');
});
//找资质
Route::get('/find/aptitude', function () {
    return view('web.find.aptitude_bak');
});
//金融
Route::get('/finance/finance', function () {
    return view('web.finance.finance');
});

//卖家中心-资质管理
Route::get('/member/seller/aptitude', function() {
    return view('web.user.seller.aptitude_list');
});
//卖家中心-资质添加
Route::get('/member/seller/aptitude/add', function() {
    return view('web.user.seller.aptitude_add');
});
//卖家中心-资质编辑
Route::get('/member/seller/aptitude/edit', function() {
    return view('web.user.seller.aptitude_edit');
});

//卖家准入
//Route::get('/member/seller/seller_admittance', function() {
//    return view('web.user.seller.seller_admittance');
//});
//合同准入
Route::get('/member/seller/contract_admittance', function() {
    return view('web.user.seller.contract_admittance');
});

//找项目
Route::get('/test/find/message', function() {
    return view('web.find.message');
});
//找项目详情
Route::get('/test/find/message_details', function() {
    return view('web.find.message_details');
});


//商品搜索页面
// Route::get('/product/search', function () {
//     return view('web.product.product_search');
// });

//新闻详情
/*Route::get('/news/index', function () {
    return view('web.news.news');
});*/

//商品分类页面
// Route::get('/product/product_list', function () {
//     return view('web.product.product_allist');
// });
//店铺公司档案
//Route::get('/shop/archives', function () {
//    return view('web.shop.archives');
//});

// 图片上传
Route::group(['prefix' => 'uploads'], function() {
    Route::any('images', 'UploadController@uploadImages');
    Route::get('images/list', 'UploadController@getUserImages',['middleware' =>  ['webAuthenticate']]);
    Route::delete('images/delete', 'UploadController@deleteObject',['middleware' =>  ['webAuthenticate']]);
    Route::post('images/multi/delete', 'UploadController@deleteObjects',['middleware' =>  ['webAuthenticate']]);
    Route::any('file', 'UploadController@uploadFile',['middleware' =>  ['webAuthenticate']]);
});



//Route::get('/seller/shop', function() {
//    return view('web.user.seller.shop');
//});

//完善公司资料
/*Route::get('/seller/prove_information', function() {
    return view('web.user.seller.prove_information');
});*/
//企业认证
/*Route::get('/member/prove', function() {
    return view('web.user.member.prove');
});*/

//商铺资料
Route::get('/seller/shop_info', function() {
    return view('web.user.seller.shop_info');
});

//商铺配置
Route::get('/seller/shop_configure', function() {
    return view('web.user.seller.shop_configure');
});

////品牌申请列表
//Route::get('/seller/shop_brand', function() {
//    return view('web.user.seller.shop_brand');
//});
//
////品牌申请添加
//Route::get('/seller/shop_brand_add', function() {
//    return view('web.user.seller.shop_brand_info');
//});
//
//
////品牌申请编辑
//Route::get('/seller/shop_brand/1', function() {
//    return view('web.user.seller.shop_brand_info');
//});

//添加商品第一步
Route::get('/seller/prove_release_first', function() {
    return view('web.user.seller.prove_release_first');
});
//添加商品第二步
Route::get('/seller/prove_release_sec', function() {
    return view('web.user.seller.prove_release_sec');
});
//商品列表
Route::get('/seller/prove_release_list', function() {
    return view('web.user.seller.prove_release_list');
});
//订单列表
// Route::get('/seller/order_list', function() {
//     return view('web.user.seller.order_list');
// });
//订单详情
Route::get('/seller/order_detail', function() {
    return view('web.user.seller.order_details');
});
//合同列表
Route::get('/seller/contract_list', function() {
    return view('web.user.seller.contract_list');
});
//添加合同
Route::get('/seller/contract_add', function() {
    return view('web.user.seller.contract_detail');
});
//编辑合同
Route::get('/seller/contract_detail', function() {
    return view('web.user.seller.contract_detail');
});
//店铺装修--模板选择
//Route::get('/seller/shop_design_templet', function() {
//    return view('web.user.seller.shop_design_templet');
//});
//店铺装修--banner设置
//Route::get('/seller/shop_design_banner', function() {
//    return view('web.user.seller.shop_design_banner');
//});
//店铺装修--模自定义分类
Route::get('/seller/shop_design_custom', function() {
    return view('web.user.seller.shop_design_custom');
});
//店铺图片
Route::get('/seller/shop_pictures', function() {
    return view('web.user.seller.shop_pictures');
});
//财务管理--我的收款
Route::get('/seller/receivables_list', function() {
    return view('web.user.seller.receivables_list');
});
//e井宝
//我的e井宝
Route::get('/seller/ebao', function() {
    return view('web.user.seller.ebao');
});
//交易记录
Route::get('/seller/trade', function() {
    return view('web.user.seller.trade');
});
//交易详情
Route::get('/seller/trade_details', function() {
    return view('web.user.seller.trade_details');
});
//收款账号
Route::get('/seller/account_number', function() {
    return view('web.user.seller.account_number');
});
//我的e井
//佣金流水
Route::get('/member/yongjin', function() {
    return view('web.user.member.yongjin');
});
//推荐好友
Route::get('/member/friends', function() {
    return view('web.user.member.friends');
});
// 我的推荐
Route::get('/member/tuijian_index', function() {
    return view('web.user.member.tuijian_index');
});
//我的推荐无推荐权限
Route::get('/member/tuijian', function() {
    return view('web.user.member.tuijian');
});
/*//账户安全
Route::get('/member/safe', function() {
    return view('web.user.member.safe');
});*/
//修改登录密码
//验证身份
/*Route::get('/member/pw_revise', function() {
    return view('web.user.member.pw_revise');
});*/
//修改登录密码
/*Route::get('/member/pw_revise2', function() {
    return view('web.user.member.pw_revise2');
});
//完成
Route::get('/member/pw_revise3', function() {
    return view('web.user.member.pw_revise3');
});*/
//验证手机修改
//验证身份
/*Route::get('/member/ph_revise', function() {
    return view('web.user.member.ph_revise');
});
//修改验证手机
Route::get('/member/ph_revise2', function() {
    return view('web.user.member.ph_revise2');
});
//完成
Route::get('/member/ph_revise3', function() {
    return view('web.user.member.ph_revise3');
});
//邮箱修改
//修改邮箱
Route::get('/member/email_revise', function() {
    return view('web.user.member.email_revise');
});
//验证邮箱
Route::get('/member/email_revise2', function() {
    return view('web.user.member.email_revise2');
});
//完成
Route::get('/member/email_revise3', function() {
    return view('web.user.member.email_revise3');
});
//支付密码修改
//验证身份
Route::get('/member/pay_revise', function() {
    return view('web.user.member.pay_revise');
});
//修改支付密码
Route::get('/member/pay_revise2', function() {
    return view('web.user.member.pay_revise2');
});
//完成
Route::get('/member/pay_revise3', function() {
    return view('web.user.member.pay_revise3');
});*/
/*//基本信息
Route::get('/member/info', function() {
    return view('web.user.member.info');
});*/
//员工管理
//Route::get('/seller/member', function() {
//    return view('web.user.seller.member');
//});
//新增员工
// 邀请手机号码
Route::get('/seller/member_add', function() {
    return view('web.user.seller.member_add');
});
// 手机验证码
Route::get('/seller/member_add2', function() {
    return view('web.user.seller.member_add2');
});
// 邀请成功
Route::get('/seller/member_add3', function() {
    return view('web.user.seller.member_add3');
});
//编辑员工
Route::get('/seller/member_edit', function() {
    return view('web.user.seller.member_edit');
});
//添加发票
Route::get('/member/inovce', function() {
    return view('web.user.member.invoice');
});
//发票管理
Route::get('/member/inovcegl', function() {
    return view('web.user.member.invoice_list');
});
//退货/款订单
Route::get('/seller/return_goods', function() {
    return view('web.user.seller.return_goods_list');
});
//注册
/*Route::get('/user/register', function() {
    return view('web.login.register');
});*/

Route::get('/order/quick', function () {
    return view('web.order.quick');//浙商银行快捷支付
});
Route::get('/order/manage_card', function () {
    return view('web.order.manage_card');//银行卡管理
});
Route::get('/order/czbank_pay_error', function () {
    return view('web.order.czbank_pay_error');//浙商网关支付错误信息提示页面
});
////卖家中心首页
//Route::get('/member/user/index', function () {
//    return view('web.user.member.index');
//});

//帮助中心
Route::get('/helper/index/1', function () {
   return view('web.help.help');
});
Route::get('/helper', function () {
   return view('web.help.help_list');
});

//卖家中心-配单新增
Route::get('/member/seller/matching/add', function() {
    return view('web.user.seller.matching_add');
});
//卖家中心-配单详情
Route::get('/member/seller/matching/eidt', function() {
    return view('web.user.seller.matching_eidt');
});
//买家中心-配单详情
Route::get('/member/buyer/matching/eidt', function() {
    return view('web.user.buyer.matching_eidt');
});
//卖家中心-我的配单
Route::get('/member/seller/matching', function() {
    return view('web.user.seller.matching');
});
//买家中心-我的配单
Route::get('/member/buyer/matching/query', function() {
    return view('web.user.buyer.matching_query');
});
//找资质
//买家中心
 //查看评价
 Route::get('/user/see/comment', function() {
    return view('web.user.buyer.see_comment');
});
 //服务订单评论
 Route::get('/user/service/comment', function() {
    return view('web.user.buyer.service_comment');
});
//服务订单
Route::get('/user/service/orders', function() {
    return view('web.user.buyer.service_orders');
});
//合同信息
Route::get('/user/buy/contract', function() {
    return view('web.user.buyer.buy_contract');
});
//找资质
//卖家中心
 //查看评价
 Route::get('/seller/see/comment', function() {
    return view('web.user.seller.see_comment');
});
 //服务订单评论
 Route::get('/seller/service/comment', function() {
    return view('web.user.seller.service_comment');
});
//服务订单
Route::get('/seller/service/orders', function() {
    return view('web.user.seller.service_orders');
});
//合同信息
Route::get('/seller/sel/contract', function() {
    return view('web.user.seller.sel_contract');
});
//合同模板
// 买家中心
// 签署合同
//合同签署（第一步）
Route::get('/buyer/contract_write', function() {
    return view('web.user.buyer.contract_write');
});
//合同签署费用（第二步）
Route::get('/buyer/contract_cost', function() {
    return view('web.user.buyer.contract_cost');
});
// 卖家中心
//我的订单
Route::get('/seller/contract_orders', function() {
    return view('web.user.seller.contract_orders');
});
//基础信息（第一步）
Route::get('/seller/contract_msg', function() {
    return view('web.user.seller.contract_msg');
});
//合同签署（第二步）
Route::get('/seller/contract_write', function() {
    return view('web.user.seller.contract_write');
});
//确认成功（第三步）
Route::get('/seller/contract_cost', function() {
    return view('web.user.seller.contract_cost');
});
//手机端
//首页
Route::get('/wap', function() {
    return view('wap.welcome');
});
//微营销信息
Route::get('/wap/marketing', function() {
    return view('wap.marketing_message');
});

//求购大厅
Route::get('/wap/wantbuy', function() {
    return view('wap.wantbuy');
});
//库存信息列表
Route::get('/wap/stockinfo', function() {
    return view('wap.stockinfo');
});
//库存信息
Route::get('/wap/stock', function() {
    return view('wap.stock');
});
//完善资料
Route::get('/wap/perfectinfo', function() {
    return view('wap.perfectinfo');
});
